import request from '@/utils/request'

// 查询工作流节点列表
export function listFlowNode(query) {
  return request({
    url: '/flow/flowNode/list',
    method: 'get',
    params: query
  })
}

// 查询工作流节点详细
export function getFlowNode(id) {
  return request({
    url: '/flow/flowNode/' + id,
    method: 'get'
  })
}

// 新增工作流节点
export function addFlowNode(data) {
  return request({
    url: '/flow/flowNode',
    method: 'post',
    data: data
  })
}

// 修改工作流节点
export function updateFlowNode(data) {
  return request({
    url: '/flow/flowNode',
    method: 'put',
    data: data
  })
}

// 删除工作流节点
export function delFlowNode(id) {
  return request({
    url: '/flow/flowNode/' + id,
    method: 'delete'
  })
}
